function MoreThanHalfNum_Solution(numbers)
{
    // write code here
    var rating = 0 //票数为0
    var res = 0 // 结果是0
    for(let i of numbers) { // 遍历数组中每个元素
      if(rating === 0){
        res = i
      }
      if(res === i){
        rating++
      }else{
        rating--
      }
    }
    return res

}
module.exports = {
    MoreThanHalfNum_Solution : MoreThanHalfNum_Solution
};